import {createAPI} from '@/utils/request'
import { get } from 'https';

export const list = data => createAPI('/sys/role/findByPage', 'post', data)
export const simple = data => createAPI('/sys/role/simple', 'post', data)
export const add = data => createAPI('/sys/role/add', 'post', data)
export const update = data => createAPI(`/sys/role/update`, 'post', data)
export const remove = data => createAPI(`/sys/role/delete`, 'post', data)
export const detail = data => createAPI(`/sys/role/findById`, 'post', data)
export const assignPrem = data => createAPI(`/sys/role/assignPrem`, 'post', data)
export const findAll = data => createAPI(`/sys/role/findAll`,'post',data)

